package com.goldgov.authorityInfo.dao;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.goldgov.authorityInfo.service.AuthorityInfo;
import com.goldgov.authorityInfo.service.AuthorityInfoExtQuery;
import com.goldgov.authorityInfo.service.AuthorityInfoQuery;

@Mapper
public interface AuthorityInfoDao{
	//权限设置
	void settingAuthorityInfo(AuthorityInfo obj);
	//清空设置
	void clearAuthorityInfo(AuthorityInfoQuery query);
	//权限查询
	List<AuthorityInfo> findAuthorityList(AuthorityInfoExtQuery query);
	//查询是否已存在该管理员
	int existAdmin(AuthorityInfoQuery query);
	//设置管理员
	void settingAdmin(AuthorityInfoQuery query);
	//设置角色
	void settingRole(AuthorityInfoQuery query);
	//设置管理范围
	void settingOrgAdminScope(AuthorityInfoQuery query);
	//取消管理员
	void cancelAdmin(AuthorityInfoQuery query);
	//取消角色
	void cancelRole(AuthorityInfoQuery query);
	//取消管理范围
	void cancelOrgAdminScope(AuthorityInfoQuery query);
	//根据机构树ID查询中文名称
	AuthorityInfo findOrganizationInfoByAdminID(AuthorityInfoExtQuery query);
	//绑定管理员
	void bindingAdmin(AuthorityInfoQuery query);
	//查询管理员列表
	List<AuthorityInfo> findAdminList(AuthorityInfoQuery query);
	//是否是绑定管理员
	AuthorityInfo ifBindingAdmin(AuthorityInfoExtQuery query);
}